import { request } from "@/http/axios"

// 获取信息资源列表
export function getResourceList(data) {
  return request({
    url: "resource/list",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 新增信息资源列表
export function addResourceList(data) {
  return request({
    url: "resource/add",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 修改信息资源列表
export function updateResourceList(data) {
  return request({
    url: "resource/update",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

// 删除信息资源列表
export function deleteResourceList(id) {
  return request({
    url: `resource/delete/${id}`,
    method: "post",
  })
}
